package com.wisewin.circle.dao;

import com.wisewin.circle.entity.db.TrendDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.*;
import java.util.Map;

@Component
public interface TrendDAO {

    public void insert(@Param("obj")TrendDO trendDO);

    public TrendDO queryTrendById(Integer trendId);

    public void updateHeartNum(Integer trendId);

    public void cancleHeartNum(Integer trendId);

    public int queryMyTrendHeartCount(Map<String, Object> map);

    public List<TrendDO> queryMyTrendHeartList(Map<String, Object> map);

    public int queryTrendCount(Map<String, Object> map);

    public List<TrendDO> queryTrendList(Map<String, Object> map);

    public void updateCommentNum(Integer trendId);

    public void cancleCommentNum(Integer trendId);

    public int queryTrendNum(@Param("today")String today);

    public List<TrendDO> queryTrendLast();

    public List<Map<String, Object>> queryTrendUser();

    public void updateVisitNum(Integer trendId);

    public TrendDO queryTrendDetail(Integer trendId, Integer userId);

    public List<TrendDO> queryMyTrendList(Map<String, Object> map);

    public List<String> queryTrendYear(Map<String, Object> map);

    public void updateStatus(Integer trendId, Integer status);
}
